<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图片移入放大</title>
    <style>
        .img-wrapper {
        width: 500px;
        height: 500px;
        margin: 200px auto;
        /* 溢出裁剪f */
        overflow: hidden;
        }
        img {
            transition: .3s;
        }
        .img-wrapper:hover img {
            transform: scale(1.2);
        }
    </style>
</head>
<body>
    <div class="img-wrapper">
        <img src="./图标.jpg" alt="">
    </div>
</body>
</html>